package com.mindata.blockchain.core.repository;

import com.mindata.blockchain.core.model.MessageEntity;
import com.mindata.blockchain.core.model.TicketEntity;

import java.util.List;

/**
 * @author 王鹏
 */
public interface TicketRepository extends BaseRepository<TicketEntity>{

    /**
     * 删除一条记录
     * @param messageId  messageId
     */
    void deleteByMessageId(String messageId);

    TicketEntity findByMessageId(String messageId);

    List<TicketEntity> findAllByStatus(Integer status);
}
